package com.mall.mapper;

import com.mall.entity.OmsOrderItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 订单中所包含的商品 Mapper 接口
 * </p>
 *
 * @author zzx
 * @since 2022-06-15
 */
@Mapper
public interface OmsOrderItemMapper extends BaseMapper<OmsOrderItem> {

    @Select("select * from oms_order_item where order_id = #{id}")
    List<OmsOrderItem> getOrderItems(@Param("id") Long id);

}
